<template>
  <header>
    <img @click="gotowhere('home')" src="../assets/images/logo.png" alt="" />
    <div v-for="(l, i) in headList" :key="i">
      <router-link :to="{ name: l.name }">
        <span>{{ l.text }}</span>
      </router-link>
    </div>
  </header>
</template>

<script>
import { headList } from "@/utils";
export default {
  data() {
    return {
      headList,
    };
  },
  methods: {},
  mounted() {
    
  },
};
</script>


<style lang="scss" scoped>
header {
  width: 100%;
  height: 60px;
  background: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  border-bottom: 0.5px solid #b9b9b9;
  position: absolute;
  left: 0;
  top: 0;
  img {
    width: 40px;
    height: 40px;
  }
  div {
    span {
      width: 100%;
      height: 19px;
      line-height: 19px;
      font-size: 16px;
      color: #000;
    }
    .router-link-exact-active {
      span {
        color: #ff5f16;
        border-color: #ff5f16;
      }
    }
  }
}
</style>